fn: <=
[contents]

Contents

Syntax

The syntax for <= calls is:

f++:  
<=(params)

n++:  
@<=(params)

Description

<= is the relational less than or equals operator, it takes a non-zero number of input parameters, if all parameters are less than or equal to the parameters following it returns 1, otherwise it returns 0.

Note: It is typically faster to use exprtk for relational operators, plus the syntax is nicer.

f++ example

Examples of <= being used with f++:

for(int i=0; <=(i, 10); i+=1)
	console("i: ", i)

int a=0, b=1, c=2
console(<=(a, b, c))
console(<=(c, a, b))

n++ example

Examples of <= being used with n++:

@for(int i=0; <=(i, 10); i+=1)
	@console("i: ", i)

@int a=0, b=1, c=2
@console(@<=(a, b, c))
@console(@<=(c, a, b))